package by.sjc.grsu.service.impl;


import by.sjc.grsu.dao.repositiory.PaymentDao;
import by.sjc.grsu.model.Payment;
import by.sjc.grsu.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;

    @Override
    public List<Payment> getAll() {
        return paymentDao.findAll();
    }
}
